/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ecu911;

import edu.ucue.ECU.dao.Conexion;
import edu.ucue.ECU.ngc.Persona;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Emily
 */
public class ECU911 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            System.out.print("hola svn burro!!");
            Conexion data=Conexion.getInstance();
            Connection var=data.getConexion();
            Statement stmt = null;
            try {
                stmt = var.createStatement();
            } catch (SQLException ex) {
                Logger.getLogger(ECU911.class.getName()).log(Level.SEVERE, null, ex);
            }
            Persona miPersona=new Persona("01623111","yo");
            boolean resultado = stmt.execute("insert into \"Persona\" values('" + miPersona.getCedula() + "','" + miPersona.getNombre() + "')");
            var.close();
            data=Conexion.getInstance();
            var=data.getConexion();
            stmt = var.createStatement();
            miPersona=new Persona("016214","yo");
            resultado = stmt.execute("insert into \"Persona\" values('" + miPersona.getCedula() + "','" + miPersona.getNombre() + "')");
            var.close();
            // TODO code application logic here
        } catch (SQLException ex) {
            Logger.getLogger(ECU911.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
